#include <iostream>
#include "Scene.h"

using namespace std;


int main (int argc, char * const argv[]) {
	int a;
	Scene scena = Scene();
	/*string strBrs = "C:\\Users\\Lycha\\Documents\\Uczelnia\\Sceny\\night\\night.brs";
	string strCam = "C:\\Users\\Lycha\\Documents\\Uczelnia\\Sceny\\night\\v2\\v2.cam";
	string strLgt = "C:\\Users\\Lycha\\Documents\\Uczelnia\\Sceny\\night\\v1\\v4.lgt";
	string strAtr = "C:\\Users\\Lycha\\Documents\\Uczelnia\\Sceny\\night\\v1\\v1.atr";*/
	string strBrs = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\pokoj\\s2.brs";
	string strCam = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\pokoj\\s2.cam";
	string strLgt = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\pokoj\\s2.lgt";
	string strAtr = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\pokoj\\room.atr";
	/*string strBrs = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\kitchen\\kuchnia.brs";
	string strCam = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\kitchen\\v1\\v1.cam";
	string strLgt = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\kitchen\\v1\\v1.lgt";
	string strAtr = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\kitchen\\v1\\v1.atr";*/
	
	/*string strBrs = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\temple\\temple.brs";
	string strCam = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\temple\\v4\\v4.cam";
	string strLgt = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\temple\\souzi.lgt";
	string strAtr = "c:\\users\\lycha\\documents\\uczelnia\\sceny\\temple\\v2\\v2.atr";*/
	//scena.readAtributesAlt(strAtr);
	//scena.printAttributes();
	//std::cin >> a;
	scena.readGeometry(strBrs);
	scena.readCamera(strCam);
	scena.readLighting(strLgt);
	//scena.readAttributes(strAtr);
	scena.readAttributesAlt(strAtr);
	//scena.printAttributes();
	scena.voxelize();
	//std::cout << "Podaj dowolna liczbe:\n";
	//std::cin >> a;
	scena.render();

	//scena.printMinMax();

	//std::cout << "koniec\n";

	//scena.print();

	//scena.printLight();
	//std::cin >> a;
	//scena.printAttributes();
    return 0;
}
